﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetAcademia.Web.Mvc
{

    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, Inherited = true, AllowMultiple = false)]
    public sealed class WhitelistAttribute : Attribute
    {
        readonly string whitelistName;

        public WhitelistAttribute(string whitelistName)
        {
            this.whitelistName = whitelistName;
            
        }

        public string WhitelistName
        {
            get { return whitelistName; }
        }

        public bool CanUseDefaultWhitelistIfMissing { get; set; }
    }


}
